const express = require("express");
const { getAboutUrlServices, updateAboutUrlServices } = require("../services/aboutServices");
const router = express.Router();

// 获取
router.get("/", async (req, res, next) => {
    res.send(await getAboutUrlServices());
})

// 修改关于我页面
router.post("/", async (req, res, next) => {
    res.send(await updateAboutUrlServices(req.body));
})

module.exports = router;